from PyQt5 import QtWidgets
from PyQt5.QtWidgets import *
from PyQt5.QtGui import *
from PyQt5.QtCore import *
from PyQt5.QtWebEngineWidgets import *

# 教程页面
class TutorialPage():

    def __init__(self, ui):
        self.ui = ui

    def create_page(self):
        # 教程页面页面
        tutorial_widget = QWidget()

        tutorial_layout = QVBoxLayout()
        content_layout = QVBoxLayout()


        browser = QWebEngineView()

        browser.setZoomFactor(2.8)
        url = QUrl("https://www.lilihewo.com/article/39.html")
        browser.load(url)

        content_layout.addWidget(browser)

        tutorial_layout.addLayout(content_layout)

        tutorial_widget.setLayout(tutorial_layout)

        return tutorial_widget


